package gui;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class InputFileFilter extends FileFilter {

	@Override
	public boolean accept(File f) {
		if (f.isDirectory()) return true;
		if (f.getName() != null && f.getName().endsWith(".bmp")){
			return true;
		}
		return false;
	}

	@Override
	public String getDescription() {
		return "select a bitmap";
	}

}